package com.example.designer.ChainOfResponsibility.servlet;

import com.example.designer.ChainOfResponsibility.servlet.filter.HTMLFilter;
import com.example.designer.ChainOfResponsibility.servlet.filter.SentsFilter;
import com.example.designer.ChainOfResponsibility.servlet.filter.UpgradeFilterChain;

import javax.swing.text.html.HTML;

/**
 * @author zhaoyunlong
 * @date 2020/12/17
 * @description
 */
public class ServletMain {


    public static void main(String[] args) {

        Request request = new Request();
        Response response = new Response();
        request.setStr("request");
        response.setStr("response");

        UpgradeFilterChain upgradeFilterChain = new UpgradeFilterChain();
        upgradeFilterChain.add(new HTMLFilter()).add(new SentsFilter()).doFilter(request, response);

    }
}
